package com.gxwz.document.core.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.*;

public class BaseAction  extends ActionSupport {
	
	public String forwardView;
	protected Integer page=0;//分页码
	protected Integer row=0;//100
	protected Integer maxpage = 0;
	
	public static final Integer DEFUALT_PAGE_SIZE=5;//默认分页数
	public static final Integer DEFUALT_PAGE_NUM=1;//默认分页码
	
	
	public String getForwardView() {
		return forwardView;
	}

	public void setForwardView(String forwardView) {
		this.forwardView = forwardView;
	}
	
	
	public int getPage() {
		if(page==null||page==0){
			page=DEFUALT_PAGE_NUM;
		}
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}
	public int getRow() {
		if(row==null||row==0){
		   row=DEFUALT_PAGE_SIZE;
		}
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public Integer getMaxpage() {
		return maxpage;
	}

	public void setMaxpage(Integer maxpage) {
		this.maxpage = maxpage;
	}
	
	
	

}
